﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
using Model;
namespace UI.system
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (B.MyAdmin == null)
            {
                Response.Redirect("login.aspx");
            }
            if (JobRequest.GetRequestString("flag") == "loginout")
            {
                B.MyAdmin = null;
                Response.Redirect("login.aspx");
            }
        }
    }
}